﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MusicLibrary.DataModels
{
    public class Song
    {
        public int Id { get; set; }
        public string Title { get; set; }
        public string FeaturedArtist { get; set; }
        public string Genre { get; set; }
        public string YoutubeUrl { get; set; }
        public int AlbumId { get; set; }
        public virtual Album Album { get; set; }

        public Song()
        {

        }
        public Song(string title, string featuredartist, string genre, string youtubeurl, int albumid)
        {
            Title = title;
            FeaturedArtist = featuredartist;
            Genre = genre;
            YoutubeUrl = youtubeurl;
            AlbumId = albumid;
        }

        public void setProps(Song song)
        {
            this.Title = song.Title;
            this.FeaturedArtist = song.FeaturedArtist;
            this.Genre = song.Genre;
            this.YoutubeUrl = song.YoutubeUrl;
        }
    }
}
